// src/router/mobile.routes.js
export default [
  {
    path: '/mobile/',
    redirect: 'login',
    children: [
      {
        path: 'login',
        name: 'mobile-login',
        component: () => import('@/components/mobile/Login.vue'),
        meta: { title: '移动端登录' },
      },
      {
        path: 'upload',
        name: 'mobile-upload',
        component: () => import('@/components/mobile/mobileUpLoad.vue'),
        // meta: { title: '添加文物详情' },
      },
      {
        path: 'personalInfo',
        name: 'mobile-personalInfo',
        component: () => import('@/components/mobile/PersonalInfo.vue'),
        // meta: { title: '个人主页' },
      },
      {
        path: 'MainPage',
        name: 'MainPage',
        component: () => import('@/components/mobile/mobileMainPage.vue'),
        // meta: { title: '文物详情列表' },
      },
      {
        path: 'edit/:id', // 动态路由，:id为参数
        name: 'relic-edit', // 路由名称
        component: () => import('@/components/mobile/EditPage.vue'),
        // meta: { title: '编辑文物详情' },
      },
      {
        path: 'relic-detail/:id',
        name: 'RelicDetail',
        component: () => import('@/components/mobile/RelicDetail.vue'),
        meta: {
          requiresAuth: true,
          // title: '文物详情',
        },
      },
      // 添加更多移动端路由...
      {
        path: 'category',
        name: 'mobile-category',
        component: () => import('@/components/mobile/mobileMainPageCategory.vue'),
        // meta: { title: '古建筑彩绘文物调查管理系统' },
      },
      {
        path: 'category/add',
        name: 'mobile-category-add',
        component: () => import('@/components/mobile/mobileCateGoryUpload.vue'),
        // meta: { title: '新增文物主体' },
      },
      {
        path: 'category/edit/:id',
        name: 'mobile-category-edit-id',
        component: () => import('@/components/mobile/mobileCateGoryEdit.vue'),
        meta: { title: '编辑文物主体' },
      },
      {
        path: 'test',
        name: 'mobile-test',
        component: () => import('@/components/mobile/mobiletest.vue'),
        // meta: { title: '编辑文物主体' },
      },
    ],
    meta: { title: '古建筑彩绘文物调查管理系统' },
  },
]
